package com.epfresh.api.entity;

/**
 * Created by wzh on 2016/4/11.
 */
public class RequestTag {
    public static int TYPE_MAIN = 2;
    public static int TYPE_CURRENT = 1;
    public static int TYPE_ALL= 0;

    public Object tag;

    public String arg1;
    public Object arg2;

    public int action = 0;

    public int type = 0;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RequestTag that = (RequestTag) o;

        return tag != null ? tag.equals(that.tag) : that.tag == null;

    }

    @Override
    public int hashCode() {
        return tag != null ? tag.hashCode() : 0;
    }


    @Override
    public String toString() {
        return "RequestTag{" +
                "tag=" + tag +
                ", arg1='" + arg1 + '\'' +
                ", arg2=" + arg2 +
                ", action=" + action +
                ", type=" + type +
                '}';
    }

}
